package org.sixtynine.stock.service;

/**
 * @author Thilan
 *
 */

import java.util.Date;
import java.util.List;

import org.sixtynine.stock.dto.GridPramDTO;
import org.sixtynine.stock.dto.Page;
import org.sixtynine.stock.entity.Dividend;

public interface DividendService {

	Dividend findById(int id);

	void saveDividend(Dividend dividend);

	void deleteDividend(int id);

	List<Dividend> findDividend(String name);

	List<Dividend> searchDividend(int companyId);

	List<Dividend> searchDividend(int companyId, Date fromDate, Date toDate);

	Page<Dividend> searchDividend(int companyId, Date fromDate, Date toDate,
			GridPramDTO gridPramDTO);

}
